Learn to Program with Small Basic by Majed Marji & Ed Price
Author:Majed Marji & Ed Price
Language: eng
Format: epub
Publisher: No Starch Press, Inc.
Published: 2016-04-13T04:00:00+00:00
Create a Gold Rush Game
Let’s create a simple game in which a player uses the arrow keys to move a turtle to collect as many bags of gold as possible (see Figure 11-8). The bag of gold appears at random locations on the grid. If the player doesn’t grab the bag in 2 seconds, it moves elsewhere. Let’s see how fast you can get the turtle to move!
Figure 11-8: Help the turtle grab as many bags of gold as possible.
NOTE
The grid is part of the background image, but we added the x- and y-coordinates in Figure 11-8 to help you understand the numbers used in the code. Refer to this figure to picture how the turtle and the bag of gold move.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
A Swirl of Ocean by Melissa Sarno(51144)
The Book of Dreams (Saxon Series) by Severin Tim(33447)
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32640)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(32014)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(31998)
Call Me by Your Name by André Aciman(20609)
Eleanor and Park by Rainbow Rowell(15565)
Always and Forever, Lara Jean by Jenny Han(14993)
For the Love of Europe by Rick Steves(14600)
Norse Mythology by Gaiman Neil(13460)
Crooked Kingdom: Book 2 (Six of Crows) by Bardugo Leigh(12371)
Shadow Children #03 - Among the Betrayed by Margaret Peterson Haddix(11969)
Among the Betrayed by Margaret Peterson Haddix(11645)
Twisted Palace by Erin Watt(11202)
Six of Crows by Leigh Bardugo(10292)
They Both Die at the End by Adam Silvera(9876)
P.S. I Still Love You by Jenny Han(9639)
Fangirl by Rainbow Rowell(9334)
Thirteen Reasons Why by Jay Asher(9011)